﻿// -------------------------------------------------------------------------
//    @FileName         :    NFCityPlayerBattleExt.h
//    @Author           :    Gao.Yi
//    @Date             :    2025-09-15
//    @Email			:    445267987@qq.com
//    @Module           :    NFCityPlayerBattleExt
//    @Desc             :
//
// -------------------------------------------------------------------------

#pragma once

#include "proto_city.nanopb.h"

class NFCityPlayerBattleExt
{
public:
    NFCityPlayerBattleExt();
    ~NFCityPlayerBattleExt();
    int CreateInit();
    int ResumeInit();

public:
    int Init(const proto_ff::CityRolePhantomTroupeInfo* pData);
    CityRolePhantomTroupeInfo* GetData() { return &m_stTroupeData; }

    bool IsTroupeHide(int iNpcObjId);

    void SetInBattle(bool bSet) { m_bIsInBattle = bSet; }
    bool IsInBattle() { return m_bIsInBattle; }

private:
    CityRolePhantomTroupeInfo m_stTroupeData;

    bool m_bIsInBattle;
};
